import React, { Component } from 'react'
import { withRouter } from 'react-router-dom'

class Header extends Component {

    componentDidMount() {
        console.log(this.props)
    }

    commonRouter = () => {

    }

    render() {
        return (
            <div>
                <button onClick={this.commonRouter}>一般组件路由跳转</button>
            </div>
        )
    }
}

export default withRouter(Header)
